﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace LCA.Community.Web.Controllers
{
    /// <summary>
    /// This class implements the controller for showing errors.
    /// </summary>
    public class ErrorController : Controller
    {

        /// <summary>
        /// Index action
        /// </summary>
        /// <param name="errorMsg">The error message.</param>
        /// <returns></returns>
        public ActionResult Index(string errorResource)
        {
            var message = Resources.Errors.ResourceManager.GetString(errorResource);
            ViewResult viewResult = View("Index", "Site", message);
            return viewResult;
        }
    }
}
